package com.corpgovernment.organization.mapper;


import com.corpgovernment.organization.common.mybatis.TkMapper;
import com.corpgovernment.organization.entity.db.MbOrgNonEmployeeInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * MbOrgNonEmployeeInfoMapper数据库操作接口类
 **/
@Repository
@org.apache.ibatis.annotations.Mapper
public interface MbOrgNonEmployeeMapper extends TkMapper<MbOrgNonEmployeeInfo> {

    /**
     * 批量保存
     *
     * @param mbOrgNonEmployeeInfoList
     * @return
     */
    int batchSave(@Param("mbOrgNonEmployeeInfoList") List<MbOrgNonEmployeeInfo> mbOrgNonEmployeeInfoList);

    /**
     * 批量查询
     *
     * @param ids
     * @return
     */
    List<MbOrgNonEmployeeInfo> listByIds(@Param("ids") List<Long> ids);

    /**
     * 删除用户的非员工
     *
     * @param uid
     * @return
     */
    int deleteByUid(String uid);

    /**
     * 批量更新外部人员信息
     * @param mbOrgNonEmployeeInfoList
     * @return
     */
    int updateBatchSelective(List<MbOrgNonEmployeeInfo> mbOrgNonEmployeeInfoList);

    /**
     * 查询
     * @param noEmployeeId
     * @return
     */
    MbOrgNonEmployeeInfo selectByNonEmployee(Long noEmployeeId);

    /**
     * 根据id逻辑删除
     * @param noEmployeeId
     */
    void deleteByNonId(Long noEmployeeId);

}